import request from '@/utils/request'
import { tradeApi } from '@/utils/comm'

// 查询运营商申请记录列表
export function listOperatorApplyRecord(query) {
  return request({
    url: `${tradeApi}/operatorApplyRecord/list`,
    method: 'get',
    params: query
  })
}

// 查询运营商申请记录详细
export function getOperatorApplyRecord(id) {
  return request({
    url: `${tradeApi}/operatorApplyRecord/` + id,
    method: 'get'
  })
}

// 通过审核
export function toPassAudit(id) {
  return request({
    url: `${tradeApi}/operatorApplyRecord/toPassAudit/${id}`,
    method: 'put',
  })
}

// 驳回申请
export function toRejectApply(id) {
  return request({
    url: `${tradeApi}/operatorApplyRecord/toRejectApply/${id}`,
    method: 'put',
  })
}
